﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNhaThuoc.DAL;
using QLNhaThuoc.DTO;

namespace QLNhaThuoc.BL
{
    class LoaiNhanVienControl
    {
        LoaiNhanVienDA loaiNVDA = new LoaiNhanVienDA();

        public LoaiNhanVien[] LayListLoaiNV()
        {
            return loaiNVDA.LayListLoaiNV();
        }

        public void ThemLoaiNV(LoaiNhanVien info)
        {
            loaiNVDA.insert(info);
        }

        public void XoaLoaiNV(LoaiNhanVien info)
        {
            loaiNVDA.delete(info);
        }

        public void CapNhatLoaiNV(LoaiNhanVien info)
        {
            loaiNVDA.update(info);
        }

        public bool KiemTraPK(LoaiNhanVien info)
        {
            return loaiNVDA.KiemTraPK(info);
        }
    }
}
